<!-- page_to_app.html -->
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        .button-container {
           display: flex;
           flex-direction: column;
         }
    </style>
</head>
<body>
<div class="button-container">
    <button type="button" onclick="callArkTSClass()">调用javaScriptProxy注册的实例方法</button>
    <button type="button" onclick="callArkTSClassR()">调用registerJavaScriptProxy注册的实例方法</button>
</div>
<p id="outstr"></p>
<script>
    function callArkTSClass() {
        let str = appSideClassObjName.hello();
        document.getElementById("outstr").innerHTML = str;
    }
    function callArkTSClassR() {
        let str = appSideClassObjNameR.helloR();
        document.getElementById("outstr").innerHTML = str;
    }
</script>
</body>
</html>
